﻿using LNet;
using OestsServer.Net;

namespace OestsServer.Handlers.UnityHandlers
{
    /// <summary>
    /// 任务操作反馈
    /// </summary>
    public class TaskOperateHandler : HandlerBase<UnityClientChannel>
    {
        public override PacketKey PKey
        {
            get
            {
                return PacketKey.TaskOperate;
            }
        }

        public override void Execute(UnityClientChannel client, Request packet)
        {
            //直接转发
            ResponsePacket = new Response(packet)
            {
                ReturnCode = ReturnCode.Success
            };
            //  ((UnityClientChannel)client).BroadcastInRoomButMe(ResponsePacket);
            client.Send(ResponsePacket);
        }
    }
}
